package com.ll.notice.schedue;


import com.ll.notice.service.ISmsNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SchedulerTask {

    @Autowired()
    ISmsNoticeService smsNoticeService;

    @Scheduled(cron = "${cron}")
    public void process() {

        smsNoticeService.sendMessage();
    }
}
